<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改用户</title>
<link href="/res/css/style.css" rel="stylesheet" type="text/css" />
<link href="/res/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/res/js/jquery.js"></script>
<script type="text/javascript" src="/res/js/select-ui.min.js"></script>
<script type="text/javascript" src="/res/js/lib/formvalid/FormValid.js"></script>
<link href="/res/js/lib/layer/skin/layer.css" rel="stylesheet" type="text/css" />
<link href="/res/js/lib/layer/skin/layer.ext.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/res/js/lib/layer/layer.js"></script>
<script type="text/javascript" src="/res/js/common/msgTools.js"></script>
<script type="text/javascript" src="/res/js/pages/article/articleEdit.js"></script>
<link rel="stylesheet" href="/res/js/lib/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="/res/js/lib/kindeditor/plugins/code/prettify.css" />
<script charset="utf-8" src="/res/js/lib/kindeditor/kindeditor-all-min.js"></script>
<script charset="utf-8" src="/res/js/lib/kindeditor/lang/zh-CN.js"></script>
<script charset="utf-8" src="/res/js/lib/kindeditor/plugins/code/prettify.js"></script>

<script type="text/javascript">
	KindEditor.ready(function(K) {
		var editor1 = K.create('textarea[name="content"]', {
			cssPath : '/res/js/lib/kindeditor/plugins/code/prettify.css',
			uploadJson : '/res/js/lib/kindeditor/jsp/upload_json.jsp',
			fileManagerJson : '/res/js/lib/kindeditor/jsp/file_manager_json.jsp',
			allowFileManager : true,
			afterCreate : function() {
				var self = this;
				K.ctrl(document, 13, function() {
					self.sync();
					document.forms['qryForm'].submit();
				});
				K.ctrl(self.edit.doc, 13, function() {
					self.sync();
					document.forms['qryForm'].submit();
				});
			},
			   afterChange : function(){
				   this.sync();			   
			   }
		});
		prettyPrint();
	});
	$(document).ready(function(e) {
		$("select").uedSelect({});
	});	
</script>	
</head>

<body>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">协议管理</a></li>
    <li><a href="#">
       
    
    编辑</a></li>
    </ul>
    </div>
    
	<div class="formbody">

		<form name="qryForm" action="/article/save/${artType}" method="post" onsubmit="return checkData(this)">
			<div id="tab1" class="tabson">
				<input type="hidden" name="id" value="${article.id }"/>
				
				<ul class="forminfo">
					<li><label>文章标题:<b>*</b></label> <input name="title" value="${article.title}" valid="required|limit" type="text" class="dfinput" style="width:366px;" />
					    <span id="errMsg_title" class="errMsg">标题6~50个字符</span>
					</li>
					<li><label>副标题:</label> <input name="subTitle" value="${article.subTitle}" type="text" class="dfinput" style="width:366px;" ></input>
					</li>
					<li><label>发布人:</label> <input name="writer" value="${article.writer}" max="20" type="text" class="dfinput" style="width:366px;" />				
					</li>
					<li><label>简介:</label> 
					   <textarea name="brief" max="0" min="200" class="dfinput" style="width:666px;height:100px;" >${article.brief}</textarea>
					   <span id="errMsg_brief" class="errMsg">0~200个字符</span>				
					</li>	
					<li><label>URL地址:<b>*</b></label> <input name="relUrl"  value="${article.relUrl}" max="10" type="text" class="dfinput" style="width:366px;" />
					</li>
																									
					<li><label>状态<b>*</b></label>
						<label>有效<input type="radio" name="isEffect" value="1" ${article.isEffect==1?"checked":""}/></label>
						<label>无效<input type="radio" name="isEffect" value="0" ${article.isEffect==1?"":"checked"}/></label>					
					</li>


					<li><label>文章内容:</label><br/>
						<div style="clear:both;"></div>					    
					    <textarea name="content" style="width:1024px;height:500px;">${article.content}</textarea>
					    <div style="clear:both;"></div>			
					</li>													

					<li><label>&nbsp;</label> <input type="submit" class="btn" value="保 存" /></li>
					
				</ul>				
				</div>
				<div style="height:50px;"></div>			
		</form>	
	</div>	
	${actionMsg}
</body>

</html>


